<extend name="Base/common"/>

<block name="style">
<link href="__CSS__/stylesheet.css" rel="stylesheet">
<link href="__CSS__/user.css" rel="stylesheet">
</block>

<block name="header">
<header>
	<include file="User/header" />
</header>
</block>

<block name="body">
<div class="container main">
	<div class="user-main">
		<div class="col-xs-3">
			<include file="User/left_menu" />
		</div>
		<div class="col-xs-9">
			<h5>编辑收货地址</h5>
			<div class="content">
				<form action="" class="form-horizontal" enctype="multipart/form-data" autocomplete="off">
					<div class="form-group">
						<label class="label-control">收货人</label>
						<div class="input-control">
							<input type="text" name="realname"  class="form-control" value="{$info.realname} ">
						</div>
					</div>
					<div class="form-group">
						<label class="label-control">所在地区</label>
						<div class="input-control">
							<select class="form-control input-select" name="province_id">
								<option>省份</option>
								<volist name=":getProvinces()" id="vo">
								<option value="{$vo.province_id}" <eq name="vo['province_id']" value="info['province_id']">selected="true"</eq>> {$vo.province}</option>
								</volist>
							</select>
							<select class="form-control input-select" name="city_id">
								<option>城市</option>	
								<option value="{$vo.city_id}" <eq name="vo['city_id']" value="info['city_id']">selected="true"</eq>> {$vo.city}</option>							
							</select>
							<select class="form-control input-select" name="area_id">
								<option>区县</option>
								<volist name=":getAreas()" id="vo">
								<option value="{$vo.area_id}" <eq name="vo['area_id']" value="info['area_id']">selected="true"</eq>> {$vo.area}</option>
								</volist>							
							</select>
						</div>
					</div>
					<div class="form-group">
						<label class="label-control">详细地址</label>
						<div class="input-control">
							<input type="hidden" name="id" value="{$info.id}" />
							<input type="text" name="address" class="form-control" value="{$info.address}">
						</div>
					</div>
					<div class="form-group">
						<label class="label-control">手机号码</label>
						<div class="input-control">
							<input type="text" name="mobile" class="form-control" value="{$info.mobile}">
						</div>
					</div>
					<div class="form-group">
						<label class="label-control">设为默认</label>
						<div class="input-control">
							<label class="radio"><input type="radio" name="is_default" value="1">是</label>
							<label class="radio"><input type="radio" name="is_default" value="0">否</label>
						</div>
					</div>
					<div class="form-group">
						<div class="button-control" style="margin-top: 0px;">
							<a href="#" class="btn">保存</a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
</block>

<block name="script">
<script type="text/javascript">
highlight_leftnav("{:U('User/receives')}");
highlight_subnav("{:U('User/index')}");
</script>
</block>